<?php

namespace app\admin\controller;

use think\facade\Session;

class Index extends Base
{
    public function index()
    {
        // halt("后台首页");
        $loginData = session('adminSessionData');
        return view('',[
            'loginData' => $loginData
        ]);
    }

    public function welcome()
    {
        return view('',[
            'count1' => 100,
            'count2' => 100,
            'count3' => 100,
            'count4' => 100,


        ]);
    }

    /**
     * 后台登录退出
     */
    public function logout()
    {
        $res = session('adminSessionData',null);
        return redirect('/admin/login');
    }

}
